package thread;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class threadTest implements Runnable {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorService executorService = Executors.newFixedThreadPool(10);
        executorService.execute(new threadTest());
        executorService.execute(new threadTest());
    }
        
    public void run() {
        System.out.println("hello thread");
    }
}